﻿<%@ page contentType="text/html; charset=utf-8" language="java" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>查询结果</title>
</head>

<body>
<div id="main">
  	<div id="tab-top">
  		<div id="ptk1">
	  		<div id="lift"></div>
	  		<div id="pt"><b>查询结果</b></div>
	  		<div id="right"></div>
  		</div>
 	</div>
<form action="" name="queryForm" method="post">
    <table width="100%">
	<tr>
<#list jspData.getList4resultSet() as myResultSet>
<#list myResultSet.getFieldList() as Field>
	    <td>${Field.getFieldDesc()}</td>
</#list>
</#list>
  	</tr>
<#list jspData.getList4resultSet() as myResultSet>
	<logic:present name="${myResultSet.getResultName()}" scope="request">
			<logic:iterate id="oneObject" name="${myResultSet.getResultName()}" scope="request">		  
			  <tr>
<#list myResultSet.getFieldList() as Field>
				<#-- 注意这里输出  ${ 是用 ${r"${"} 这个来输出，使用转义符之类 \ 测试不行-->
				<td align="center">${r"${"}oneObject.${Field.getFieldName()}}</td>
</#list>
			  </tr>
			</logic:iterate>
	</logic:present>
</#list>
	</table>

</form>
</div>
</body>
